<?php

class address_unit_value_dao extends dao
{
    protected $table_name = 'address_unit_value';
    protected $db_config_key = 'default';

    public function find_by_address_unit_turn_and_value(address_unit_turn $address_unit_turn, $value)
    {/*{{{*/
        otherwise($value, __FUNCTION__.' 参数 $value 不能为空');

        return $this->find_by_column([
            'address_unit_turn_id' => $address_unit_turn->id,
            'value' => $value,
        ]);
    }/*}}}*/
}
